<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>背景图片</title>
    <style>
        div {
            /* background-image: url(); url为引入路径 */
            background-image: url(../11.30/bargain.png);
            /* background-image: url(/favicon.ico); */
            width: 600px;
            height: 250px;
            background-color: #ccc;
            /* background-repeat: no-repeat;为不平铺 */
            background-repeat: no-repeat;
            /* background-repeat: no-repeat;为平铺 */
            /* background-repeat: repeat; */
            /* background-repeat: no-repeat;为x轴(横向)平铺 */
            /* background-repeat: repeat-x; */
            /* background-repeat: no-repeat;为y轴(竖向)平铺 */
            /* background-repeat: repeat-y;             */
            margin: 0 auto;
        }
    </style>
</head>
<body>
    <div>div </div>
</body>
</html>